package com.jk1123.us.core.datasource;

import com.zaxxer.hikari.HikariDataSource;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import javax.sql.DataSource;

/**
 * @author huyoufu <https://github.com/huyoufu>
 * @TIME 2021-09-16 22:38
 * @description
 */
@Configuration
@EnableConfigurationProperties(UsDataSourceProperties.class)
public class UsDatasourceConfig {
    @Bean
    public DataSource dataSource(){

        HikariDataSource dataSource = new HikariDataSource();

        return dataSource;


    }
}
